/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package decorationstrings;

import java.io.FilterWriter;
import java.io.IOException;
import java.io.Writer;

/**
 *
 * @author usuario08
 */
public abstract class MyDecorator extends FilterWriter {
    
    protected MyDecorator(Writer out){
        super(out);
    }

   
    public void write(char[] cbuf, int offset, int length) throws IOException {
        for (int i = 0; i < length; i++) {
            write(cbuf[offset+i]);
            
        }
        
    }
    public abstract void write(int c)throws IOException;
    public void write(String str, int offset, int length) throws IOException {
        write(str.toCharArray(), offset, length);
    }
    
        
    
}
